package org.example.backend.service;

import org.example.backend.entity.User;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface UserService extends UserDetailsService {
    User getCurrentUser();
    void updatePassword(String oldPassword, String newPassword);
    
    // 添加 JWT 相关方法
    String generateToken(String username);
    boolean validateToken(String token);
    String getUsernameFromToken(String token);
} 